package com.hms.dao;

import java.util.List;

import org.hibernate.SessionFactory;

import com.hibernate.beans.Ptnt;
import com.hms.dao.impl.PatientDAOImpl;
import com.hms.vo.beans.PatientQueryCriteriaVO;

public interface PatientDAO {

	public abstract SessionFactory getSessionFactory();

	public abstract void setSessionFactory(SessionFactory sessionFactory);

	public abstract void persist(Ptnt transientInstance);

	public abstract void attachDirty(Ptnt instance);

	public abstract void attachClean(Ptnt instance);

	public abstract void delete(Ptnt persistentInstance);

	public abstract Ptnt merge(Ptnt detachedInstance);

	public abstract Ptnt findById(java.lang.Integer id);

	public abstract List<Ptnt> findByExample(PatientDAO instance);

	public abstract List<Ptnt> searchPatient(
			PatientQueryCriteriaVO ptntQueryCriteria);

}